package cn.edu.jlu.grid.vjm;

import java.util.Vector;

public class VJobDispatcher {
	private IVJobDispatchStrategy dispatchStrategy = 
		new VJMResourceSelectionStrategy();
	
	public Vector<Cluster> dispatch(Vector<Cluster> clusterSet, int nVJobs) {
		return dispatchStrategy.dispatch(clusterSet, nVJobs);
	}
		
	public IVJobDispatchStrategy getDispatchStrategy() {
		return this.dispatchStrategy;
	}
	
	public void setDispatchStrategy(IVJobDispatchStrategy strategy) {
		this.dispatchStrategy = strategy;
	}
}
